package com.ymm.system.api.utils;

/**
 * 运单状态
 *
 * @author guorui
 */
public enum TradeCodeEnum {
    /**
     * 前往装货地
     */
    TO_LOADING_PLACE(0, "前往装货地"),
    /**
     * 到达装货地
     */
    ARRIVAL_AT_LOADING_PLACE(1, "到达装货地"),
    /**
     * 运输中
     */
    TRANSITING(2, "运输中"),
    /**
     * 到达卸货地
     */
    ARRIVAL_AT_UNLOADING_PLACE(3, "到达卸货地"),
    /**
     * 已卸货
     */
    CARGO_UNLOADED(4, "已卸货");


    private Integer code;
    private String message;

    TradeCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String toString() {
        return "OrderStatusEnum{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
